package com.kcwl.carrier.domain.service;

import com.kcwl.carrier.domain.entity.ReleaseDriverLogInfo;
import com.kcwl.carrier.domain.repository.IReleaseDriverLogRepository;
import com.kcwl.carrier.infrastructure.repository.po.ReleaseDriverLogPO;
import com.kcwl.framework.utils.KcBeanConverter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class ReleaseDriverLogDomainService {

    @Resource
    private IReleaseDriverLogRepository releaseDriverLogRepository;

    public void save(ReleaseDriverLogInfo releaseDriverLog) {
        releaseDriverLogRepository.save(KcBeanConverter.toBean(releaseDriverLog, ReleaseDriverLogPO.class));
    }
}
